package cn.shop.front.entity.gamebind;

import cn.hutool.core.lang.RegexPool;
import cn.shop.utils.constant.Regular;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author : 李一涵
 * @date : Created in 2022-7-21 10:33
 * @description :
 */
@Data
@ToString
public class RegistBindReq {

    @NotBlank(message = "用户名不能为空")
    @Pattern(regexp = Regular.ACCOUNT, message = Regular.ACCOUNT_MASSAGE)
    private String account;
    @NotBlank(message = "密码不能为空")
    @Pattern(regexp = Regular.PASSWORD, message = Regular.PASSWORD_MASSAGE)
    private String password;
    @Pattern(regexp = RegexPool.MOBILE, message = "请输入正确手机格式")
    private String phone;
    @NotNull(message = "请输入验证码")
    private String code;
    private String gameAccount;
    private String gameNickname;
    private String gameCode;
    private Long pid;

}
